//
//  WBDemoViewController.swift
//  徐工微博
//
//  Created by ahfu on 2017/4/10.
//  Copyright © 2017年 ahfu. All rights reserved.
//

import UIKit

class WBDemoViewController: WBBaseViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        title = "第\(navigationController?.childViewControllers.count ?? 0) 个"
    }

    @objc fileprivate func showNext(){
        let vc = WBDemoViewController()
        
        navigationController?.pushViewController(vc, animated: true)
    }
}
extension WBDemoViewController {
    override func setupUI() {
        super.setupUI()
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(showNext))
    }
}
